package collisionGroups;

import sprites.spritegroups.CollisionSpriteGroup;
import sprites.spritegroups.PhysicsSpriteGroup;
import exceptions.WrongTypeException;
import collisionGroups.AdvancedCollisionGroup;

public abstract class PhysicsCollisionGroup extends AdvancedCollisionGroup
{
	public PhysicsCollisionGroup(PhysicsSpriteGroup spriteGroup)
	{
		super(spriteGroup);
		if(!spriteGroup instanceof CollisionSpriteGroup)
		{
			throw new WrongTypeException("Sprite group must be both a PhysicsSpriteGroup and a CollisionSpriteGroup");
		}
	}
}
